@import (reference) 'config';

.w-actions,
w-actions {
  display: block;
  height: 16px;
  width: 4px;
  position: absolute;
  right: 30px;
  top: 50%;
  margin-top: -8px;
  cursor: pointer;
  user-select: none;

  .actions-container {
    z-index: 4;
    min-width: 215px;
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    margin-bottom: 10px;
    padding: 17px 0;
    background-color: @color-white;
    box-shadow: @shadow-buttons-default;
    border-radius: @border-radius;

    .action {
      padding: 8px 20px;
      a {
        color: @color-disabled-900;
      }
      &:hover {
        background-color: @color-basic-50;
      }
    }
    &.expanded {
      display: block;
    }
  }

  .click-area {
    display: flex;
    justify-content: center;
    width: 24px;
    height: 16px;
    cursor: pointer;

    .dots {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;

      .dot {
        width: 4px;
        height: 4px;
        border-radius: 100%;
        background-color: @color-basic-500;

        .spam & {
          background-color: @color-basic-200;
        }
      }
    }

    .dots.white.horizontal {
      flex-direction: row;
      width: 30px;

      .dot {
        background-color: @color-white;
      }
    }
  }
}

@media screen and (min-height: 590px) {
  .w-actions,
  w-actions {
    .actions-container {
      &.to-up {
        top: auto;
        bottom: -10px;
      }
    }
  }
}
